<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    var a=60;
    var b=38;
    var c=a>=60?"及格":"不及格";
    var d=b>=60?"及格":"不及格";
    alert("a="+c+"\r\n"+"b="+d);

</script>

</body>
</html>